/*
 * WSO2 API Manager - Publisher API
 * This specifies a **RESTful API** for WSO2 **API Manager** - Publisher.  Please see [full swagger definition](https://raw.githubusercontent.com/wso2/carbon-apimgt/v6.0.4/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher/src/main/resources/publisher-api.yaml) of the API which is written using [swagger 2.0](http://swagger.io/) specification. 
 *
 * OpenAPI spec version: v1.0
 * Contact: architecture@wso2.com
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package org.wso2.carbon.apimgt.rest.integration.tests.publisher.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * LifecycleStateValidationBeans
 */

public class LifecycleStateValidationBeans {
  @JsonProperty("classObject")
  private Object classObject = null;

  @JsonProperty("targetName")
  private String targetName = null;

  @JsonProperty("customMessage")
  private String customMessage = null;

  public LifecycleStateValidationBeans classObject(Object classObject) {
    this.classObject = classObject;
    return this;
  }

   /**
   * Get classObject
   * @return classObject
  **/
  @ApiModelProperty(value = "")
  public Object getClassObject() {
    return classObject;
  }

  public void setClassObject(Object classObject) {
    this.classObject = classObject;
  }

  public LifecycleStateValidationBeans targetName(String targetName) {
    this.targetName = targetName;
    return this;
  }

   /**
   * Get targetName
   * @return targetName
  **/
  @ApiModelProperty(example = "Published", value = "")
  public String getTargetName() {
    return targetName;
  }

  public void setTargetName(String targetName) {
    this.targetName = targetName;
  }

  public LifecycleStateValidationBeans customMessage(String customMessage) {
    this.customMessage = customMessage;
    return this;
  }

   /**
   * Get customMessage
   * @return customMessage
  **/
  @ApiModelProperty(example = "Validation successful", value = "")
  public String getCustomMessage() {
    return customMessage;
  }

  public void setCustomMessage(String customMessage) {
    this.customMessage = customMessage;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    LifecycleStateValidationBeans lifecycleStateValidationBeans = (LifecycleStateValidationBeans) o;
    return Objects.equals(this.classObject, lifecycleStateValidationBeans.classObject) &&
        Objects.equals(this.targetName, lifecycleStateValidationBeans.targetName) &&
        Objects.equals(this.customMessage, lifecycleStateValidationBeans.customMessage);
  }

  @Override
  public int hashCode() {
    return Objects.hash(classObject, targetName, customMessage);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class LifecycleStateValidationBeans {\n");
    
    sb.append("    classObject: ").append(toIndentedString(classObject)).append("\n");
    sb.append("    targetName: ").append(toIndentedString(targetName)).append("\n");
    sb.append("    customMessage: ").append(toIndentedString(customMessage)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}

